/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-01-06 10:06:40
 * @LastEditors: huangtianyang
 * @LastEditTime: 2023-10-08 10:47:18
 * @FilePath: \cxl-admin\src\apis\index\index.ts
 */
import axios from '../../axios/index'

/**
 * 查询企业产品月统计
 * @param companyId
 * @returns
 */
export const companyProductMonthStatistics = (companyId?: string) => {
    return axios({
        method: 'get',
        url: '/api/mall/home/page/companyProductMonthStatistics',
        params: { companyId }
    })
}

/**
 * 查询企业产品累计统计
 * @param companyId
 * @returns
 */
export const companyProductSumStatistics = (companyId?: string) => {
    return axios({
        method: 'get',
        url: '/api/mall/home/page/companyProductSumStatistics',
        params: { companyId }
    })
}

/**
 * 查询当月购买企业数量
 * @returns
 */
export const queryThisMonthStoreCompanyCount = () => {
    return axios({
        method: 'get',
        url: '/api/mall/home/page/queryThisMonthStoreCompanyCount'
    })
}

export const registerStatistics = () => {
    return axios({
        method: 'get',
        url: '/api/system/company/register/statistics'
    })
}
